package vethbr

import (
	"crypto/rand"
)

func generateMacAddress() []byte {
	mac := []byte{0x02, 0x42}
	randomPart := make([]byte, 4)
	_, err := rand.Read(randomPart)
	if err != nil {
		panic(err)
	}
	mac = append(mac, randomPart...)
	//fmt.Printf("%02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])
	return mac
}
